<script lang="ts">
import { Router, Link, Route } from "svelte-navigator";
import Blog from './pages/blog/index.svelte'
import Home from './pages/index.svelte'

import Wdthdraw from './pages/withdraw/index.svelte'
import AddVoter from './pages/addvoter/index.svelte'
import RemoveVoter from './pages/removevoter/index.svelte'
import Proposal from './pages/proposal/index.svelte'
export let hash;
const address="0x741bA12991F87aC629741c9D4C68dCD85a62B3eA"
</script>


 <Router history={hash}>
	<h1 class="text-4xl sm:text-6xl lg:text-7xl leading-none font-extrabold tracking-tight text-gray-900 mt-10 mb-8 sm:mt-14 sm:mb-10">EIDOS FUNDS</h1>    
	<Link to="/">回到首页</Link>
	<div>
		<Route primary={false} path="/">
			<Home  address={address}/>
		</Route>
	 
		<Route primary={false} path="blog">
			<Blog />
		</Route>
	 
		<Route primary={false} path="withdraw">
			<Wdthdraw address={address} />
		</Route>

		<Route primary={false} path="addvoter">
			<AddVoter address={address} />
		</Route>

		<Route primary={false} path="removevoter">
			<RemoveVoter address={address} />
		</Route>

		<Route primary={false} path="proposal/:id" let:params>
			<Proposal address={address} id={params.id} />
		</Route>
	</div>
</Router>  
 